import Layout from '@/layout/index.vue';

export default {
  path: '/need',
  component: Layout,
  redirect: '/need/needCenter',
  name: 'Need',
  meta: { title: '待办中心', icon: '' },
  children: [
    {
      path: 'needCenter',
      component: () => import('@/pages/need/needCenter/index.vue'),
      name: 'NeedCenter',
      meta: { title: '待办中心' }
    },
    {
      path: 'Enterprise',
      component: () => import('@/pages/need/enterprise/index.vue'),
      name: 'Enterprise',
      meta: { title: '企业认证' },
      children: [
        {
          path: 'list',
          component: () => import('@/pages/need/enterprise/list/index.vue'),
          name: 'EnterpriseList',
          meta: { title: '查看列表' }
        }
      ]
    },
    {
      path: 'Personal',
      component: () => import('@/pages/need/personal/index.vue'),
      name: 'Personal',
      meta: { title: '个人认证' }
    },
    {
      path: 'Review',
      component: () => import('@/pages/need/review/index.vue'),
      name: 'Review',
      meta: { title: '商品审核' },
      children: [
        {
          path: 'list',
          component: () => import('@/pages/need/review/list/index.vue'),
          name: 'ReviewList',
          meta: { title: '查看列表' }
        }
      ]
    },
    {
      path: 'Inquiry',
      component: () => import('@/pages/need/inquiry/index.vue'),
      name: 'Inquiry',
      meta: { title: '询价记录' }
    },
    {
      path: 'Asset',
      component: () => import('@/pages/need/asset/index.vue'),
      name: 'Asset',
      meta: { title: '资产处置' }
    },
    {
      path: 'Request',
      component: () => import('@/pages/need/request/index.vue'),
      name: 'Request',
      meta: { title: '我的求购' }
    },
    {
      path: 'Report',
      component: () => import('@/pages/need/report/index.vue'),
      name: 'Report',
      meta: { title: '我的举报' }
    },
    {
      path: 'Feedback',
      component: () => import('@/pages/need/feedback/index.vue'),
      name: 'Feedback',
      meta: { title: '用户反馈' }
    },
    {
      path: 'Shipped',
      component: () => import('@/pages/need/shipped/index.vue'),
      name: 'Shipped',
      meta: { title: '订单已发货' }
    },
    {
      path: 'Pending',
      component: () => import('@/pages/need/pending/index.vue'),
      name: 'Pending',
      meta: { title: '订单待发货' },
      children: [
        {
          path: 'list',
          component: () => import('@/pages/need/pending/list/index.vue'),
          name: 'PendingList',
          meta: { title: '查看列表' }
        }
      ]
    },
    {
      path: 'Payment',
      component: () => import('@/pages/need/payment/index.vue'),
      name: 'Payment',
      meta: { title: '订单待支付' },
      children: [
        {
          path: 'list',
          component: () => import('@/pages/need/payment/list/index.vue'),
          name: 'PaymentList',
          meta: { title: '查看列表' }
        }
      ]
    },
    {
      path: 'Locked',
      component: () => import('@/pages/need/locked/index.vue'),
      name: 'Locked',
      meta: { title: '订单待解锁' },
      children: [
        {
          path: 'list',
          component: () => import('@/pages/need/locked/list/index.vue'),
          name: 'LockedList',
          meta: { title: '查看列表' }
        }
      ]
    },
    {
      path: 'Recruit',
      component: () => import('@/pages/need/recruit/index.vue'),
      name: 'Recruit',
      meta: { title: '我要招聘' }
    }
  ]
};